package com.castle.fortress.admin.study.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.study.course.entity.StudyCourseClassifyEntity;
import com.castle.fortress.admin.study.course.dto.StudyCourseClassifyDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.Map;
import java.util.List;

/**
 * 课程/课件分类表 服务类
 *
 * @author castle
 * @since 2023-01-30
 */
public interface StudyCourseClassifyService extends IService<StudyCourseClassifyEntity> {

    /**
     * 分页展示课程/课件分类表列表
     * @param page
     * @param studyCourseClassifyDto
     * @return
     */
    IPage<StudyCourseClassifyDto> pageStudyCourseClassify(Page<StudyCourseClassifyDto> page, StudyCourseClassifyDto studyCourseClassifyDto);

    /**
    * 分页展示课程/课件分类表扩展列表
    * @param page
    * @param studyCourseClassifyDto
    * @return
    */
    IPage<StudyCourseClassifyDto> pageStudyCourseClassifyExtends(Page<StudyCourseClassifyDto> page, StudyCourseClassifyDto studyCourseClassifyDto);
    /**
    * 课程/课件分类表扩展详情
    * @param id 课程/课件分类表id
    * @return
    */
    StudyCourseClassifyDto getByIdExtends(Long id);

    /**
     * 展示课程/课件分类表列表
     * @param studyCourseClassifyDto
     * @return
     */
    List<StudyCourseClassifyDto> listStudyCourseClassify(StudyCourseClassifyDto studyCourseClassifyDto);

    /**
     * 校验同级别名称是否重复
     * @param studyCourseClassifyEntity
     * @return
     */
    boolean checkName(StudyCourseClassifyEntity studyCourseClassifyEntity);
}
